/*
 * ExampleFunction.cpp
 *
 *  Created on: 2010-01-11
 *      Author: adas
 */

#include "ExampleFunction.h"

double ExampleFunction::operator()(const Element & el)
{
//	double ret = 0.0;
/*
	for(int i = 0; i < el.getDimensionCount(); ++i)
	{
		ret += el.getValueAt(i);
	}
*/


	return (el.getValueAt(0)-2)*(el.getValueAt(0)-2) + (el.getValueAt(1)-3)*(el.getValueAt(1)-3) -6;

}
